import Home from '@/views/home'
import Subject from '@/views/subject'
import Information from '@/views/information'
import Mine from '@/views/mine'
import Login from '@/views/login'
// import SearchBar from '@/components/search-bar'
import NavigationBar from '@/components/navigation-bar'
import Tabbar from '@/components/tabbar'

export default [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'home',
    components: {
      header: NavigationBar,
      footer: Tabbar,
      default: Home
    },
    meta: {
      isTabbar: true,
      title: '首页',
      icon: '&#xe64f;'
    }
  },
  {
    path: '/subject',
    name: 'subject',
    components: {
      header: NavigationBar,
      footer: Tabbar,
      default: Subject
    },
    meta: {
      isTabbar: true,
      title: '课程',
      icon: '&#xe65f;'
    }
  },
  {
    path: '/information',
    name: 'information',
    components: {
      header: NavigationBar,
      footer: Tabbar,
      default: Information
    },
    meta: {
      title: '信息',
      isTabbar: true,
      icon: '&#xe619;'
    }
  },
  {
    path: '/mine',
    name: 'mine',
    components: {
      header: NavigationBar,
      default: Mine,
      footer: Tabbar
    },
    meta: {
      isTabbar: true,
      title: '我的',
      icon: '&#xe6a3;'
    }
  },
  {
    path: '/login',
    name: 'login',
    components: {
      default: Login
    }
  }
]
